package com.app.markdown.main;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * @Author 56465
 * @Create 2024/7/30 19:25
 */
public class MarkdownApp extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        System.out.println("getClass().getResource(\"markdown-app.fxml\") = " + getClass().getResource("markdown-app.fxml"));
        Parent root = FXMLLoader.load(getClass().getResource("markdown-app.fxml"));
        primaryStage.setTitle("My JavaFX App");
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
